home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / web / noweb / src / INSTALL.DOS < prev    next >
Text File  |  1995-02-24  |  2KB  |  44 lines

  1. Lee Wittenburg kindly provided this account of his efforts in getting
  2. noweb working on a DOS machine using the MKS toolkit.
  3.  
  4.     1.  All the shell scripts without an extension required a .KSH.  The
  5.     makefile, of course needed to be changed accordingly.  Also, the
  6.     normal .o to .obj and <no extension> to .exe was necessary in the
  7.     makefile.  No other changes were necessary, except minor ones due to
  8.     bugs in MKS make.
  9.  
  10.     2.  Rename INSTALL to INSTALL.NIX to keep make from getting confused.
  11.  
  12.     3.  I changed all references to "nawk" to "awk".
  13.  
  14.     4.  There is a bug in MKS Awk that requires a couple of changes in
  15.     NOWEAVE.  There's a problem with backslashes in the 2nd argument to
  16.     gsub() that requires a couple of changes to NOWEAVE.  The lines
  17.  
  18.         gsub("\\\\", "\\\\", line)
  19.         gsub("{", "\\{", line); gsub("}", "\\}", line)
  20.  
  21.     need to be 
  22.  
  23.         gsub("\\\\", "\\\\\\", line)
  24.         gsub("{", "\\\{", line); gsub("}", "\\\}", line)
  25.  
  26.     I've reported this bug to MKS (when I first found it in version
  27.     3.2), but it still hasn't been fixed.  It's not a NOWEB bug, but 
  28.     MKS Awk NOWEB users need to know about it.  
  29.  
  30.     5.  MKS Awk is POSIX compiliant with regard to regular expression
  31.     syntax; Unix Awk isn't; GNU Awk swings both ways (I believe); other
  32.     Awks I couldn't say about.  This causes a problem ONLY in NOXREF.
  33.     I had to change the line
  34.  
  35.         gsub(/[\[\]\\{} -]/, "*", key)
  36.  
  37.     to
  38.  
  39.         gsub(/[[\{} -]|\]/, "*", key)
  40.  
  41.     which probably won't work on a Unix Awk. There's likely to be
  42.         a Unix/POSIX discrepency in Awks for quite a while.
  43.  
  44.